<?php 
/* SVN FILE: $Id$ */
/* Tournamentgroup Test cases generated on: 2009-04-24 22:04:53 : 1240612133*/
App::import('Model', 'Tournamentgroup');

class TournamentgroupTestCase extends CakeTestCase {
	var $Tournamentgroup = null;
	var $fixtures = array('app.tournamentgroup', 'app.user_tournament');

	function startTest() {
		$this->Tournamentgroup =& ClassRegistry::init('Tournamentgroup');
	}

	function testTournamentgroupInstance() {
		$this->assertTrue(is_a($this->Tournamentgroup, 'Tournamentgroup'));
	}

	function testTournamentgroupFind() {
		$this->Tournamentgroup->recursive = -1;
		$results = $this->Tournamentgroup->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Tournamentgroup' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-04-24 22:28:53',
			'modified'  => '2009-04-24 22:28:53'
		));
		$this->assertEqual($results, $expected);
	}
}
?>